package com.goods.entity;

import java.math.BigDecimal;

public class Orderitem {

    @Override
    public String toString() {
        return "Orderitem{" +
                "orderitemid='" + orderitemid + '\'' +
                ", quantity=" + quantity +
                ", subtotal=" + subtotal +
                ", bid='" + bid + '\'' +
                ", bname='" + bname + '\'' +
                ", currprice=" + currprice +
                ", imageB='" + imageB + '\'' +
                ", oid='" + oid + '\'' +
                '}';
    }

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column orderitem.orderItemId
     *
     * @mbg.generated Mon Jun 21 09:25:50 CST 2021
     */
    private String orderitemid;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column orderitem.quantity
     *
     * @mbg.generated Mon Jun 21 09:25:50 CST 2021
     */
    private Integer quantity;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column orderitem.subtotal
     *
     * @mbg.generated Mon Jun 21 09:25:50 CST 2021
     */
    private BigDecimal subtotal;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column orderitem.bid
     *
     * @mbg.generated Mon Jun 21 09:25:50 CST 2021
     */
    private String bid;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column orderitem.bname
     *
     * @mbg.generated Mon Jun 21 09:25:50 CST 2021
     */
    private String bname;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column orderitem.currPrice
     *
     * @mbg.generated Mon Jun 21 09:25:50 CST 2021
     */
    private BigDecimal currprice;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column orderitem.image_b
     *
     * @mbg.generated Mon Jun 21 09:25:50 CST 2021
     */
    private String imageB;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column orderitem.oid
     *
     * @mbg.generated Mon Jun 21 09:25:50 CST 2021
     */
    private String oid;


    public Orderitem(String orderitemid, Integer quantity, BigDecimal subtotal, String bid, String bname, BigDecimal currprice, String imageB, String oid) {
        this.orderitemid = orderitemid;
        this.quantity = quantity;
        this.subtotal = subtotal;
        this.bid = bid;
        this.bname = bname;
        this.currprice = currprice;
        this.imageB = imageB;
        this.oid = oid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column orderitem.orderItemId
     *
     * @return the value of orderitem.orderItemId
     *
     * @mbg.generated Mon Jun 21 09:25:50 CST 2021
     */
    public String getOrderitemid() {
        return orderitemid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column orderitem.orderItemId
     *
     * @param orderitemid the value for orderitem.orderItemId
     *
     * @mbg.generated Mon Jun 21 09:25:50 CST 2021
     */
    public void setOrderitemid(String orderitemid) {
        this.orderitemid = orderitemid == null ? null : orderitemid.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column orderitem.quantity
     *
     * @return the value of orderitem.quantity
     *
     * @mbg.generated Mon Jun 21 09:25:50 CST 2021
     */
    public Integer getQuantity() {
        return quantity;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column orderitem.quantity
     *
     * @param quantity the value for orderitem.quantity
     *
     * @mbg.generated Mon Jun 21 09:25:50 CST 2021
     */
    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column orderitem.subtotal
     *
     * @return the value of orderitem.subtotal
     *
     * @mbg.generated Mon Jun 21 09:25:50 CST 2021
     */
    public BigDecimal getSubtotal() {
        return subtotal;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column orderitem.subtotal
     *
     * @param subtotal the value for orderitem.subtotal
     *
     * @mbg.generated Mon Jun 21 09:25:50 CST 2021
     */
    public void setSubtotal(BigDecimal subtotal) {
        this.subtotal = subtotal;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column orderitem.bid
     *
     * @return the value of orderitem.bid
     *
     * @mbg.generated Mon Jun 21 09:25:50 CST 2021
     */
    public String getBid() {
        return bid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column orderitem.bid
     *
     * @param bid the value for orderitem.bid
     *
     * @mbg.generated Mon Jun 21 09:25:50 CST 2021
     */
    public void setBid(String bid) {
        this.bid = bid == null ? null : bid.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column orderitem.bname
     *
     * @return the value of orderitem.bname
     *
     * @mbg.generated Mon Jun 21 09:25:50 CST 2021
     */
    public String getBname() {
        return bname;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column orderitem.bname
     *
     * @param bname the value for orderitem.bname
     *
     * @mbg.generated Mon Jun 21 09:25:50 CST 2021
     */
    public void setBname(String bname) {
        this.bname = bname == null ? null : bname.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column orderitem.currPrice
     *
     * @return the value of orderitem.currPrice
     *
     * @mbg.generated Mon Jun 21 09:25:50 CST 2021
     */
    public BigDecimal getCurrprice() {
        return currprice;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column orderitem.currPrice
     *
     * @param currprice the value for orderitem.currPrice
     *
     * @mbg.generated Mon Jun 21 09:25:50 CST 2021
     */
    public void setCurrprice(BigDecimal currprice) {
        this.currprice = currprice;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column orderitem.image_b
     *
     * @return the value of orderitem.image_b
     *
     * @mbg.generated Mon Jun 21 09:25:50 CST 2021
     */
    public String getImageB() {
        return imageB;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column orderitem.image_b
     *
     * @param imageB the value for orderitem.image_b
     *
     * @mbg.generated Mon Jun 21 09:25:50 CST 2021
     */
    public void setImageB(String imageB) {
        this.imageB = imageB == null ? null : imageB.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column orderitem.oid
     *
     * @return the value of orderitem.oid
     *
     * @mbg.generated Mon Jun 21 09:25:50 CST 2021
     */
    public String getOid() {
        return oid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column orderitem.oid
     *
     * @param oid the value for orderitem.oid
     *
     * @mbg.generated Mon Jun 21 09:25:50 CST 2021
     */
    public void setOid(String oid) {
        this.oid = oid == null ? null : oid.trim();
    }
}